import type { AppRouteModule } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
import { LAYOUT } from '/@/router/constant';
const blog: AppRouteModule = {
  path: '/blog',
  name: 'blog',
  component: LAYOUT,
  redirect: '/blog',
  meta: {
    orderNo: 2000,
    icon: 'ion:settings-outline',
    title: t('routes.demo.blog.moduleName'),
  },
  children: [
    {
      path: 'blog',
      name: 'blogManagement',
      meta: {
        title: t('routes.demo.blog.blog'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/blog/post/index.vue'),
    },
    {
      path: 'category',
      name: 'categoryManagement',
      meta: {
        title: t('routes.demo.blog.category'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/demo/blog/category/index.vue'),
    },
    {
      path: 'tag',
      name: 'tagManagement',
      meta: {
        title: t('routes.demo.blog.tag'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/demo/blog/tag/index.vue'),
    },
  ],
};
export default blog;
